package yana.tpe.onlineshop.services;

import java.io.Serializable;
import java.util.List;
import yana.tpe.onlineshop.domain.domains.AbstractEntity;

/**
 *
 */
public interface AbstractService <Key extends Serializable, Value extends AbstractEntity<Key>> {

	Value get(Key id);

	List<Value> getList();

	Key save(Value object);

	void saveOrUpdate(Value object);

	void delete(Value object);
}
